package com.cardone.platform.configuration.service;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import org.springframework.cache.annotation.CacheEvict;

import com.cardone.platform.configuration.dao.ConfigurationDao;

/**
 * 配置服务
 * 
 * @author yaoht
 * 
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ConfigurationDefaultService implements ConfigurationService {
	/**
	 * 配置数据持久
	 */
	private ConfigurationDao configurationDao;

	/**
	 * 字典服务
	 */
	private DictionaryService dictionaryService;

	/**
	 * 站服务
	 */
	private SiteService siteService;

	@Override
	@CacheEvict(value = ConfigurationService.BEAN_ID, allEntries = true)
	public void reload() {
		this.configurationDao.reload();
	}
}